package elitech.vietnam.myfashion.doinbackground;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;

import org.xmlpull.v1.XmlPullParserException;

import elitech.vietnam.myfashion.entites.Product;
import elitech.vietnam.myfashion.extend.AsyncTask;
import elitech.vietnam.myfashion.wsclient.Service;

public class GetBestOfDayTask extends AsyncTask<Void, Void, Void> {

	private Service service = new Service();
	public ArrayList<Product> rs;
	private Date mDate;
	private int mId;
	
	public GetBestOfDayTask(Date date, int accountID) {
		this.mDate = date;
		this.mId = accountID;
	}
	
	@Override
	public Void doInBackground(Void... params) {
		try {
			rs = service.getBestOfDay(mDate, mId);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (XmlPullParserException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}